package com.ruoyi.system.vis.service.reg.impl;

import com.ruoyi.system.vis.domain.reg.SysPatient;
import com.ruoyi.system.vis.mapper.reg.SysPatientMapper;
import com.ruoyi.system.vis.service.reg.SysPatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysPatientServiceImpl implements SysPatientService {
    @Autowired
    private SysPatientMapper sysPatientMapper;
    @Override
    public SysPatient selectPatientByCard(String card) {
        return sysPatientMapper.selectPatientByCard(card);
    }

    @Override
    public SysPatient selectPatientById(Integer id) {
        return sysPatientMapper.selectPatientById(id);
    }

    @Override
    public SysPatient selectPatientByName(String patientName) {
        return sysPatientMapper.selectPatientByName(patientName);
    }

    @Override
    public int insertPatient(SysPatient patient) {
        System.out.println(patient);
        return sysPatientMapper.insertPatient(patient);
    }


}
